package study;

import org.apache.dubbo.common.compiler.Compiler;
import org.apache.dubbo.common.extension.ExtensionLoader;
import org.apache.dubbo.container.Main;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
 * 腾讯课堂搜索【咕泡学院】
 * 官网：www.gupaoedu.com
 * 风骚的Mic 老师
 * create-date: 2020/1/6-12:10
 */
public class DubboMain {
    public static void main(String[] args) throws Exception {
        start1();
        System.in.read();

//        start2(args);

    }

    /**
     * 启动方式一
     */
    public static void start1(){
        ClassPathXmlApplicationContext context=new ClassPathXmlApplicationContext("classpath*:/META-INF/spring/user-provider.xml");
        context.start();
    }

    /**
     * 启动方式二：
     *  SpringContainer默认加载：classpath*:META-INF/spring/*.xml
     * @param args
     */
    public static void start2(String[] args){
        Main.main(args);
    }
}
